module.exports   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 33

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 33
rs 8.8571
1
/*
2
 * grunt-guetzli
3
 * https://github.com/Ayesh/grunt-guetzli
4
 */
5
6
'use strict';
7
8
module.exports = function(grunt) {
9
10
  // Project configuration.
11
    grunt.initConfig({
12
13
      // Cleanup the optimized images directory.
14
        clean: {
15
          test: ['tmp/images-optimized']
16
        },
17
        guetzli: {
18
            files: {
19
                expand: true,
20
                src: 'tmp/images/*.jpg',
21
                dest: 'tmp/images-optimized'
22
            },
23
            options: {
24
                verbose: false,
25
                quality: 84
26
            }
27
        }
28
29
  });
30
31
  // Actually load this plugin's task(s).
32
  grunt.loadTasks('tasks');
33
34
  // These plugins provide necessary tasks.
35
  grunt.loadNpmTasks('grunt-contrib-clean');
36
37
  // test task.
38
  grunt.registerTask('test', ['guetzli']);
39
40
};
41